home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
telegard
/
chtca003.zip
/
CHATCALL.SCR
< prev
next >
Wrap
Text File
|
1996-02-11
|
5KB
|
175 lines
VARIABLE WANTTOCHAT BOOLEAN NO
VARIABLE ANSWER BOOLEAN "YES"
VARIABLE TRUE BOOLEAN YES
VARIABLE MYCHAT STRING
VARIABLE CHATNO INTEGER
VARIABLE RETRYCNT INTEGER
VARIABLE QUIT1 STRING "/Q^M"
VARIABLE QUIT2 STRING "/q^M"
VARIABLE EMPTY STRING ""
LABEL CHATNODE
LABEL CHAT1
LABEL CHAT2
LABEL CHATTING
LABEL CHATANSWER
LABEL WANTCHAT
LABEL DISPLAYCHAT
LABEL GETINPUT
LABEL NEWCHAT
LABEL CHATINSTRUCTIONS
GOTO CHATANSWER
:NEWCHAT
CLS
MENU NW
PUT "Enter the node number to chat with: "
GET CHATNO
IF "$CHATNO$" "0"
ENDSCRIPT
ENDIF
IF "$CHATNO$" "~CN"
ENDSCRIPT
ENDIF
FILECREATE C:\bbs\TEMP$CHATNO$\CHAT.~CN
FILEPUT "~UH wishes to chat with you!"
FILECLOSE
MENU NM $CHATNO$; ~UH wishes to chat with you. Press /C from any menu to chat.
:CHATINSTRUCTIONS
KEYPRESSED PUTNL "~SP"
KEYPRESSED GOTO CHATINSTRUCTIONS
CLS
PUTNL "`02 Welcome to CHATCALL, an inter-node chat script for Telegard 3.0!"
PUTNL "`02There are several commands that you can enter by pressing the / key at the"
PUTNL "`02beginning of the line. Pressing /? and then enter will get you a list of"
PUTNL "`02commands that may be used while in CHATCALL. If you enjoy this inter-node"
PUTNL "`02chat feature, then be sure to thank `09Tim Strike `02who made it possible by"
PUTNL "`02improving Telegards SCRIPT language.
NL
PUTNL "`02To QUIT chat, simply press /Q at the beginning of the line"
NL
PUTNL "`02Enjoy this multi-node chat being done ALL via `09Telegards Scripts"
PUTNL "`02__________________________________________________________________"
NL
GOTO CHATTING
:CHATANSWER
FILEEXIST C:\bbs\TEMP~CN\CHAT.1 GOTO CHAT1
FILEEXIST C:\bbs\TEMP~CN\CHAT.2 GOTO CHAT2
GOTO NEWCHAT
:CHAT1
FILEDISPLAY C:\bbs\TEMP~CN\CHAT.1
CHATNO "1"
GOTO CHATNODE
:CHAT2
FILEDISPLAY C:\bbs\TEMP~CN\CHAT.2
CHATNO "2"
GOTO CHATNODE
:CHATNODE
YESNO WANTTOCHAT "Do you want to chat? (Y/N) [Y]"
IF "$WANTTOCHAT$" "$ANSWER$"
CLS
PUTNL "`02 Welcome to CHATCALL, an inter-node chat script for Telegard 3.0!"
PUTNL "`02There are several commands that you can enter by pressing the / key at the"
PUTNL "`02beginning of the line. Pressing /? and then enter will get you a list of"
PUTNL "`02commands that may be used while in CHATCALL. If you enjoy this inter-node"
PUTNL "`02chat feature, then be sure to thank `09Tim Strike `02who made it possible by"
PUTNL "`02improving Telegards SCRIPT language.
NL
PUTNL "`02To QUIT chat, simply press /Q at the beginning of the line"
NL
PUTNL "`02Enjoy this multi-node chat being done ALL via `09Telegards Scripts"
PUTNL "`02__________________________________________________________________"
NL
GOTO WANTCHAT
ENDIF
GOTO NEWCHAT
:WANTCHAT
FILEERASE C:\bbs\TEMP~CN\CHAT.$CHATNO$
:CHATTING
FILEEXIST C:\bbs\TEMP~CN\CHATTEXT.$CHATNO$ goto DISPLAYCHAT
:GETINPUT
MYCHAT ""
KEYPRESSED PUTNL "`07"
KEYPRESSED GET MYCHAT "~UH> " 75 TRUE PICTURE
IF "$MYCHAT$" "/Q"
FILEEXIST C:\bbs\TEMP$CHATNO$\CHAT.~CN FILEERASE C:\bbs\TEMP$CHATNO$\CHAT.~CN
FILEEXIST C:\bbs\TEMP$CHATNO$\CHATTEXT.~CN FILEERASE C:\bbs\TEMP$CHATNO$\CHATTEXT.~CN
MENU NM $CHATNOW$;~UH has left CHAT...
ENDSCRIPT
ENDIF
IF "$MYCHAT$" "/q"
FILEEXIST C:\bbs\TEMP$CHATNO$\CHAT.~CN FILEERASE C:\bbs\TEMP$CHATNO$\CHAT.~CN
FILEEXIST C:\bbs\TEMP$CHATNO$\CHATTEXT.~CN FILEERASE C:\bbs\TEMP$CHATNO$\CHATTEXT.~CN
MENU NM $CHATNOW$;~UH has left CHAT...
ENDSCRIPT
ENDIF
IF "$MYCHAT$" "/N"
GOTO NEWCHAT
ENDIF
IF "$MYCHAT$" "/n"
GOTO NEWCHAT
ENDIF
IF "$MYCHAT$" "/S"
MENU NM
ENDIF
IF "$MYCHAT$" "/s"
MENU NM
ENDIF
IF "$MYCHAT$" "/?"
CLS
PUTNL "`02 Chatcall HELP screen"
PUTNL "`02 ------------------------------------------------------------"
NL
NL
PUTNL "`07 type `0E/Q `07at the beginning of the line to quit chatting.
PUTNL "`07 type `0E/N `07at the beginning of the line to start a new chat.
PUTNL "`07 tyep `0E/S `07at the beginning of the line to SEND a message.
NL
PUTNL "`03 Press ANY key to continue"
:HELPLOOP
KEYPRESSED GOTO CHATINSTRUCTIONS
GOTO HELPLOOP
ENDIF
RETRYCNT 0
:RETRYCNTR
INCREMENT RETRYCNT
IF "$RETRYCNT$" "100"
PUTNL "Error sending to node$CHATNO$!"
ENDSCRIPT
ENDIF
FILEEXIST C:\bbs\TEMP$CHATNO$\CHATREAD.~CN goto RETRYCNTR
IFNOT "$MYCHAT$" "$EMPTY$"
FILECREATE C:\bbs\TEMP$CHATNO$\CHATTEXT.~CN
FILEPUT "~UH> $MYCHAT$"
FILECLOSE
ENDIF
MYCHAT
GOTO CHATTING
; FILEERASE C:\bbs\TEMP~CN\CHATTEXT.~CN
; PUTNL "~SP"
:DISPLAYCHAT
FILECREATE C:\bbs\TEMP~CN\CHATREAD.~CN
FILECLOSE
PUTNL "`02"
FILEDISPLAY C:\bbs\TEMP~CN\CHATTEXT.$CHATNO$
FILEERASE C:\bbs\TEMP~CN\CHATTEXT.$CHATNO$
FILEERASE C:\bbs\TEMP~CN\CHATREAD.$CHATNO$
GOTO GETINPUT
ENDSCRIPT